<%@ page import="java.net.InetAddress" %><%--
  Created by IntelliJ IDEA.
  User: zylia
  Date: 2017/8/22 0022
  Time: 21:37:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>模拟登录</title>
</head>
<body>
Login
<%=InetAddress.getLocalHost().getHostAddress()%>
<%=request.getServerPort()%>
<%=request.getLocalPort()%>
<%session.setAttribute("user","123");%>;
${sessionScope.user}
设置 session
</body>
</html>
